#!/bin/sh

if [ -n "`/opt/bin/pidof miau`" ]; then 
    /opt/bin/killall miau 2>/dev/null
fi

if [ ! -d /opt/var/spool/miau ] ;  then
    mkdir -p /opt/var/spool/miau
fi

/opt/bin/miau -d /opt/var/spool/miau

